package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Bean
 * @since 2021-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论人id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 评论人昵称
     */
    @TableField("uname")
    private String uname;

    /**
     * 作品id
     */
    @TableField("vid")
    private Integer vid;

    /**
     * 父级评论的id
     */
    @TableField("parent_id")
    private Integer parentId;

    /**
     * 被回复人的id
     */
    @TableField("reply_id")
    private Integer replyId;

    /**
     * 被回复人的name
     */
    @TableField("reply_name")
    private String replyName;

    /**
     * 评论级别
     */
    @TableField("comment_level")
    private String commentLevel;

    /**
     * 评论的内容
     */
    @TableField("content")
    private String content;

    /**
     * 评论是否置顶  0未置顶  1 置顶
     */
    @TableField("state_top")
    private Integer stateTop;

    /**
     * 评论的时间
     */
    @JsonFormat(pattern = " yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    /**
     * 评论消息的处理
     */
    @TableField("state")
    private Integer state;

    @TableField("auditor")
    private Integer auditor;

}
